﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using com.fmtx.Model;
using com.fmtx.IDal;
using fmtx.Framework.DALFactory;
using fmtx.Framework.DESC;

namespace website.Areas.Admin.Controllers
{
    public class UserController : AdminBaseController
    {
        //
        // GET: /Admin/User/
        private IUserInfo user = DataAccess<IUserInfo>.GetObject();

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Add()
        {
            UserInfo model = new UserInfo();
            model.Name = "shouji";
            model.PassWord = DESCHandler.MD5_32("123456");
            model.IsSystem = true;
            user.Add(model);
            return View();
        }

    }
}
